<template>
  <view class="content">
    <!-- 优惠券 -->
    <view class="header mb-2 bg-white">
      <view
        :class="selectedIndex === 0 ? 'active' : ''"
        @click="selectedIndex = 0"
        >未使用</view
      >
      <view
        :class="selectedIndex === 1 ? 'active' : ''"
        @click="selectedIndex = 1"
        >已使用</view
      >
      <view
        :class="selectedIndex === 2 ? 'active' : ''"
        @click="selectedIndex = 2"
        >已过期</view
      >
    </view>
    <view class="coupons bg-white">
      <image src="../../../static/imgTest/2397e7b.png" mode="scaleToFill" />
      <p class="">暂无优惠券</p>
      <view class="search">
        <button class="btn">上一页</button>
        <button class="btn">下一页</button>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      selectedIndex: 0,
    };
  },
};
</script>

<style lang="scss" scoped>
.content {
  height: 100%;
  display: flex;
  flex-direction: column;
  .header {
    width: 100%;
    height: 88rpx;
    display: flex;
    view {
      width: 260rpx;
      height: 100%;
      text-align: center;
      line-height: 88rpx;
      font-size: 28rpx;
      cursor: pointer;
    }
    .active {
      background: #28a745;
      color: #fff;
    }
  }
  .coupons {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    image {
    }
    p {
      color: #545b62;
      font-size: 32rpx;
    }
    .search {
      width: 100%;
      margin: 20rpx 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      button {
        color: #e1e1e1;
        background: #f8f8fa;
        margin: 0 40rpx 0 0;
        width: 200rpx;
        height: 80rpx;
        background: #f8f8fa;
        border-radius: 4rpx;
        border: none;
        color: #666;
        text-align: center;
        text-decoration: none;
        font-size: 28rpx;
        line-height: 80rpx;
      }
    }
  }
}
</style>
